QT       += widgets sql concurrent network
TARGET = qtvplugin_orbit
TEMPLATE = lib
DESTDIR = $$OUT_PWD/../bin
DEFINES += QTVPLUGIN_orbit_LIBRARY
win32{
message ($$QMAKE_COMPILER)
equals(QMAKE_COMPILER, msvc) {
    message (" VS Complier, UTF-8 switch is on.")
    QMAKE_CXXFLAGS += -utf-8
    QMAKE_CFLAGS += -utf-8
}
}

INCLUDEPATH +=  orbit/core
INCLUDEPATH +=  orbit/orbit

SOURCES += \
    orbit/core/cEci.cpp \
    orbit/core/cJulian.cpp \
    orbit/core/cSite.cpp \
    orbit/core/cTLE.cpp \
    orbit/core/cVector.cpp \
    orbit/core/coord.cpp \
    orbit/core/globals.cpp \
    orbit/orbit/cNoradBase.cpp \
    orbit/orbit/cNoradSDP4.cpp \
    orbit/orbit/cNoradSGP4.cpp \
    orbit/orbit/cOrbit.cpp \
    orbit/orbit/cSatellite.cpp \
    qtvplugin_orbit.cpp \
    qtvplugin_orbit_tle.cpp \
    qtvplugin_orbit_trace.cpp

HEADERS +=\
    ../geocalc/geocalc.h \
    ../qtviewer_planetosm/osmtiles/layer_interface.h \
    ../qtviewer_planetosm/osmtiles/viewer_interface.h \
    orbit/core/cEci.h \
    orbit/core/cJulian.h \
    orbit/core/cSite.h \
    orbit/core/cTLE.h \
    orbit/core/cVector.h \
    orbit/core/coord.h \
    orbit/core/coreLib.h \
    orbit/core/exceptions.h \
    orbit/core/globals.h \
    orbit/orbit/cNoradBase.h \
    orbit/orbit/cNoradSDP4.h \
    orbit/orbit/cNoradSGP4.h \
    orbit/orbit/cOrbit.h \
    orbit/orbit/cSatellite.h \
    orbit/orbit/orbitLib.h \
    orbit_elems.h \
    qtvplugin_orbit.h

FORMS += \
    qtvplugin_orbit.ui

TRANSLATIONS += qtvplugin_orbit_zh_CN.ts

OTHER_FILES += qtvplugin_orbit_zh_CN.ts

RESOURCES += \
    resources.qrc


